package com.zhy.springcloud.cotroller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.UUID;

/**
 * @Author zhy
 * @Description peyment控制层
 * @ClassName PaymentController
 * @Date 2020/11/29 11:55
 **/
@RestController
@Slf4j
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/payment/consul")
    public String paymentConsul(){
        return  "springcloud with consul: "+serverPort+"\t"+ UUID.randomUUID().toString();
    }


}
